package lab02.test19;

/**
 * Created by ASUS on 2017/10/28.
 */
public class Test {

    public static void main(String[] args) {

        String result = "HelloWorld";

        char tmp;

        int i;

        for (i = 0; i < result.length(); i++) {

            tmp = result.charAt(i);

            if (tmp >= 'A' && tmp <= 'Z') {

                System.out.print((char) (tmp + 32));

            }else if (tmp >= 'a' && tmp <= 'z')

                System.out.print((char)(tmp - 32));
        }
    }
}